layui.use([], function(){
		//最近交易日涨跌情况
		var summary = echarts.init(document.getElementById('summary'),'macarons');
		summary.showLoading();
		var months=12;
		var summaryOption={
				    title: {
		                text: '近'+months+'交易月打板涨跌数据汇总',
		                subtext: '单位（%）',
		                left: 'left'
		            },
				    tooltip : {
				        trigger: 'axis',
				        axisPointer : {            // 坐标轴指示器，坐标轴触发有效
				            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
				        }
				    },
				    color:["#FF3030","#FF3030","#FF3030","#8470FF","#8470FF","#8470FF","#9ACD32","#9ACD32","#9ACD32"],
				    legend: {
				    },
				    grid: {
				        left: '3%',
				        right: '4%',
				        bottom: '3%',
				        containLabel: true
				    },
				    yAxis : [
				        {   axisLabel:{formatter:'{value}'},
				            type : 'value'
				        }
				    ]
		};
		io.get("/bi/hlu/summary-stat/"+months,function(res){
			summary.hideLoading();
			summaryOption.legend.data=res.attr.legendData;
			summaryOption.xAxis= [{axisLabel: {interval:0,rotate:40 },type : 'category',data : res.attr.xAxisData}];
			summaryOption.series=res.attr.series;
			summary.setOption(summaryOption);
		});
	});